import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {SysUserComponent} from './sys-user.component';

const routes: Routes = [
    {path: '', component: SysUserComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-sys-user/add-sys-user.module#AddSysUserModule'},
            {path: 'list', loadChildren: './list-sys-user/list-sys-user.module#ListSysUserModule'},
            {path: 'modify', loadChildren: './modify-sys-user/modify-sys-user.module#ModifySysUserModule'},
            {path: 'report', loadChildren: './report-sys-user/report-sys-user.module#ReportSysUserModule'},
            {path: 'login', loadChildren: './login-sys-user/login-sys-user.module#LoginSysUserModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SysUserRoutingModule {
}
